Integrand size = 18, antiderivative size = 123 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=\frac {a^5 p \sqrt {x}}{3 b^5}-\frac {a^4 p x}{6 b^4}+\frac {a^3 p x^{3/2}}{9 b^3}-\frac {a^2 p x^2}{12 b^2}+\frac {a p x^{5/2}}{15 b}-\frac {p x^3}{18}-\frac {a^6 p \log \left (a+b \sqrt {x}\right )}{3 b^6}+\frac {1}{3} x^3 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \]
-1/6*a^4*p*x/b^4+1/9*a^3*p*x^(3/2)/b^3-1/12*a^2*p*x^2/b^2+1/15*a*p*x^(5/2) /b-1/18*p*x^3-1/3*a^6*p*ln(a+b*x^(1/2))/b^6+1/3*x^3*ln(c*(a+b*x^(1/2))^p)+ 1/3*a^5*p*x^(1/2)/b^5
Time = 0.04 (sec) , antiderivative size = 112, normalized size of antiderivative = 0.91 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=\frac {b p \sqrt {x} \left (60 a^5-30 a^4 b \sqrt {x}+20 a^3 b^2 x-15 a^2 b^3 x^{3/2}+12 a b^4 x^2-10 b^5 x^{5/2}\right )-60 a^6 p \log \left (a+b \sqrt {x}\right )+60 b^6 x^3 \log \left (c \left (a+b \sqrt {x}\right )^p\right )}{180 b^6} \]
(b*p*Sqrt[x]*(60*a^5 - 30*a^4*b*Sqrt[x] + 20*a^3*b^2*x - 15*a^2*b^3*x^(3/2 ) + 12*a*b^4*x^2 - 10*b^5*x^(5/2)) - 60*a^6*p*Log[a + b*Sqrt[x]] + 60*b^6* x^3*Log[c*(a + b*Sqrt[x])^p])/(180*b^6)
Time = 0.28 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2904, 2842, 49, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx\) |
\(\Big \downarrow \) 2904 |
\(\displaystyle 2 \int x^{5/2} \log \left (c \left (a+b \sqrt {x}\right )^p\right )d\sqrt {x}\) |
\(\Big \downarrow \) 2842 |
\(\displaystyle 2 \left (\frac {1}{6} x^3 \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{6} b p \int \frac {x^3}{a+b \sqrt {x}}d\sqrt {x}\right )\) |
\(\Big \downarrow \) 49 |
\(\displaystyle 2 \left (\frac {1}{6} x^3 \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{6} b p \int \left (\frac {a^6}{b^6 \left (a+b \sqrt {x}\right )}-\frac {a^5}{b^6}+\frac {\sqrt {x} a^4}{b^5}-\frac {x a^3}{b^4}+\frac {x^{3/2} a^2}{b^3}-\frac {x^2 a}{b^2}+\frac {x^{5/2}}{b}\right )d\sqrt {x}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 2 \left (\frac {1}{6} x^3 \log \left (c \left (a+b \sqrt {x}\right )^p\right )-\frac {1}{6} b p \left (\frac {a^6 \log \left (a+b \sqrt {x}\right )}{b^7}-\frac {a^5 \sqrt {x}}{b^6}+\frac {a^4 x}{2 b^5}-\frac {a^3 x^{3/2}}{3 b^4}+\frac {a^2 x^2}{4 b^3}-\frac {a x^{5/2}}{5 b^2}+\frac {x^3}{6 b}\right )\right )\) |
2*(-1/6*(b*p*(-((a^5*Sqrt[x])/b^6) + (a^4*x)/(2*b^5) - (a^3*x^(3/2))/(3*b^ 4) + (a^2*x^2)/(4*b^3) - (a*x^(5/2))/(5*b^2) + x^3/(6*b) + (a^6*Log[a + b* Sqrt[x]])/b^7)) + (x^3*Log[c*(a + b*Sqrt[x])^p])/6)
3.1.47.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_ ))^(q_.), x_Symbol] :> Simp[(f + g*x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])/( g*(q + 1))), x] - Simp[b*e*(n/(g*(q + 1))) Int[(f + g*x)^(q + 1)/(d + e*x ), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m _.), x_Symbol] :> Simp[1/n Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*L og[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p, q}, x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) & & !(EqQ[q, 1] && ILtQ[n, 0] && IGtQ[m, 0])
Time = 0.40 (sec) , antiderivative size = 99, normalized size of antiderivative = 0.80
method | result | size |
parts | \(\frac {x^{3} \ln \left (c \left (a +b \sqrt {x}\right )^{p}\right )}{3}-\frac {p b \left (-\frac {2 \left (-\frac {x^{3} b^{5}}{6}+\frac {a \,x^{\frac {5}{2}} b^{4}}{5}-\frac {a^{2} b^{3} x^{2}}{4}+\frac {a^{3} x^{\frac {3}{2}} b^{2}}{3}-\frac {b \,a^{4} x}{2}+a^{5} \sqrt {x}\right )}{b^{6}}+\frac {2 a^{6} \ln \left (a +b \sqrt {x}\right )}{b^{7}}\right )}{6}\) | \(99\) |
1/3*x^3*ln(c*(a+b*x^(1/2))^p)-1/6*p*b*(-2/b^6*(-1/6*x^3*b^5+1/5*a*x^(5/2)* b^4-1/4*a^2*b^3*x^2+1/3*a^3*x^(3/2)*b^2-1/2*b*a^4*x+a^5*x^(1/2))+2*a^6/b^7 *ln(a+b*x^(1/2)))
Time = 0.33 (sec) , antiderivative size = 105, normalized size of antiderivative = 0.85 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=-\frac {10 \, b^{6} p x^{3} - 60 \, b^{6} x^{3} \log \left (c\right ) + 15 \, a^{2} b^{4} p x^{2} + 30 \, a^{4} b^{2} p x - 60 \, {\left (b^{6} p x^{3} - a^{6} p\right )} \log \left (b \sqrt {x} + a\right ) - 4 \, {\left (3 \, a b^{5} p x^{2} + 5 \, a^{3} b^{3} p x + 15 \, a^{5} b p\right )} \sqrt {x}}{180 \, b^{6}} \]
-1/180*(10*b^6*p*x^3 - 60*b^6*x^3*log(c) + 15*a^2*b^4*p*x^2 + 30*a^4*b^2*p *x - 60*(b^6*p*x^3 - a^6*p)*log(b*sqrt(x) + a) - 4*(3*a*b^5*p*x^2 + 5*a^3* b^3*p*x + 15*a^5*b*p)*sqrt(x))/b^6
Time = 3.26 (sec) , antiderivative size = 119, normalized size of antiderivative = 0.97 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=- \frac {b p \left (\frac {2 a^{6} \left (\begin {cases} \frac {\sqrt {x}}{a} & \text {for}\: b = 0 \\\frac {\log {\left (a + b \sqrt {x} \right )}}{b} & \text {otherwise} \end {cases}\right )}{b^{6}} - \frac {2 a^{5} \sqrt {x}}{b^{6}} + \frac {a^{4} x}{b^{5}} - \frac {2 a^{3} x^{\frac {3}{2}}}{3 b^{4}} + \frac {a^{2} x^{2}}{2 b^{3}} - \frac {2 a x^{\frac {5}{2}}}{5 b^{2}} + \frac {x^{3}}{3 b}\right )}{6} + \frac {x^{3} \log {\left (c \left (a + b \sqrt {x}\right )^{p} \right )}}{3} \]
-b*p*(2*a**6*Piecewise((sqrt(x)/a, Eq(b, 0)), (log(a + b*sqrt(x))/b, True) )/b**6 - 2*a**5*sqrt(x)/b**6 + a**4*x/b**5 - 2*a**3*x**(3/2)/(3*b**4) + a* *2*x**2/(2*b**3) - 2*a*x**(5/2)/(5*b**2) + x**3/(3*b))/6 + x**3*log(c*(a + b*sqrt(x))**p)/3
Time = 0.20 (sec) , antiderivative size = 98, normalized size of antiderivative = 0.80 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=\frac {1}{3} \, x^{3} \log \left ({\left (b \sqrt {x} + a\right )}^{p} c\right ) - \frac {1}{180} \, b p {\left (\frac {60 \, a^{6} \log \left (b \sqrt {x} + a\right )}{b^{7}} + \frac {10 \, b^{5} x^{3} - 12 \, a b^{4} x^{\frac {5}{2}} + 15 \, a^{2} b^{3} x^{2} - 20 \, a^{3} b^{2} x^{\frac {3}{2}} + 30 \, a^{4} b x - 60 \, a^{5} \sqrt {x}}{b^{6}}\right )} \]
1/3*x^3*log((b*sqrt(x) + a)^p*c) - 1/180*b*p*(60*a^6*log(b*sqrt(x) + a)/b^ 7 + (10*b^5*x^3 - 12*a*b^4*x^(5/2) + 15*a^2*b^3*x^2 - 20*a^3*b^2*x^(3/2) + 30*a^4*b*x - 60*a^5*sqrt(x))/b^6)
Leaf count of result is larger than twice the leaf count of optimal. 255 vs. \(2 (97) = 194\).
Time = 0.28 (sec) , antiderivative size = 255, normalized size of antiderivative = 2.07 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=\frac {60 \, b x^{3} \log \left (c\right ) + {\left (\frac {60 \, {\left (b \sqrt {x} + a\right )}^{6} \log \left (b \sqrt {x} + a\right )}{b^{5}} - \frac {360 \, {\left (b \sqrt {x} + a\right )}^{5} a \log \left (b \sqrt {x} + a\right )}{b^{5}} + \frac {900 \, {\left (b \sqrt {x} + a\right )}^{4} a^{2} \log \left (b \sqrt {x} + a\right )}{b^{5}} - \frac {1200 \, {\left (b \sqrt {x} + a\right )}^{3} a^{3} \log \left (b \sqrt {x} + a\right )}{b^{5}} + \frac {900 \, {\left (b \sqrt {x} + a\right )}^{2} a^{4} \log \left (b \sqrt {x} + a\right )}{b^{5}} - \frac {360 \, {\left (b \sqrt {x} + a\right )} a^{5} \log \left (b \sqrt {x} + a\right )}{b^{5}} - \frac {10 \, {\left (b \sqrt {x} + a\right )}^{6}}{b^{5}} + \frac {72 \, {\left (b \sqrt {x} + a\right )}^{5} a}{b^{5}} - \frac {225 \, {\left (b \sqrt {x} + a\right )}^{4} a^{2}}{b^{5}} + \frac {400 \, {\left (b \sqrt {x} + a\right )}^{3} a^{3}}{b^{5}} - \frac {450 \, {\left (b \sqrt {x} + a\right )}^{2} a^{4}}{b^{5}} + \frac {360 \, {\left (b \sqrt {x} + a\right )} a^{5}}{b^{5}}\right )} p}{180 \, b} \]
1/180*(60*b*x^3*log(c) + (60*(b*sqrt(x) + a)^6*log(b*sqrt(x) + a)/b^5 - 36 0*(b*sqrt(x) + a)^5*a*log(b*sqrt(x) + a)/b^5 + 900*(b*sqrt(x) + a)^4*a^2*l og(b*sqrt(x) + a)/b^5 - 1200*(b*sqrt(x) + a)^3*a^3*log(b*sqrt(x) + a)/b^5 + 900*(b*sqrt(x) + a)^2*a^4*log(b*sqrt(x) + a)/b^5 - 360*(b*sqrt(x) + a)*a ^5*log(b*sqrt(x) + a)/b^5 - 10*(b*sqrt(x) + a)^6/b^5 + 72*(b*sqrt(x) + a)^ 5*a/b^5 - 225*(b*sqrt(x) + a)^4*a^2/b^5 + 400*(b*sqrt(x) + a)^3*a^3/b^5 - 450*(b*sqrt(x) + a)^2*a^4/b^5 + 360*(b*sqrt(x) + a)*a^5/b^5)*p)/b
Time = 1.33 (sec) , antiderivative size = 97, normalized size of antiderivative = 0.79 \[ \int x^2 \log \left (c \left (a+b \sqrt {x}\right )^p\right ) \, dx=\frac {x^3\,\ln \left (c\,{\left (a+b\,\sqrt {x}\right )}^p\right )}{3}-\frac {p\,x^3}{18}-\frac {a^6\,p\,\ln \left (a+b\,\sqrt {x}\right )}{3\,b^6}-\frac {a^2\,p\,x^2}{12\,b^2}+\frac {a^3\,p\,x^{3/2}}{9\,b^3}+\frac {a^5\,p\,\sqrt {x}}{3\,b^5}+\frac {a\,p\,x^{5/2}}{15\,b}-\frac {a^4\,p\,x}{6\,b^4} \]